package com.qtummatrix.service.impl;

import com.qtummatrix.dao.Uploading;
import com.qtummatrix.service.UploadingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * create by Gongshiyong  2019-12-07 11:31
 */
@Service
public class UploadingServiceImpl implements UploadingService {

    @Autowired
    private Uploading uploading ;

    public Uploading getUploading() {
        return uploading;
    }

    public void setUploading(Uploading uploading) {
        this.uploading = uploading;
    }




    //打印答案信息跟客户信息对比

    @Override
    public List<Map<String, Object>> upMess(){
        return uploading.upMess();
    }

    /**
     * 获取银行信息
     * @return
     */
    @Override
    public List<Map<String, Object>> getAllBankName() {
     return   uploading.getAllBankName();
    }

    /**
     * 获取用户信息
     * @param customer
     * @param bank
     * @return
     */
    @Override
    public List<Map<String, Object>> getInformation(String customer, String bank,int fiest,int rpws) {
       return uploading.getInformation(customer,bank, fiest,rpws);
    }

    /**
     * 获取产品名称
     * @return
     */
    @Override
    public List<Map<String, Object>> getProduct() {
        return uploading.getProduct();
    }

    /**
     * 获取状态
     * @return
     */
    @Override
    public List<Map<String, Object>> getState() {
        return uploading.getState();
    }


    /**
     * 根据条件查询客户信息
     * @param snumbering
     * @param snumbered
     * @param scustomerName
     * @param sproduct
     * @param sstate
     * @param sRabobank
     * @return
     */
    @Override
    public List<Map<String, Object>> getAccommodation(String snumbering, String snumbered, String scustomerName, String sproduct, String sstate, String sRabobank,int fiest,int rpws) {
        return uploading.getAccommodation(snumbering,snumbered,scustomerName,sproduct,sstate,sRabobank,fiest,rpws);
    }

    @Override
    public List<Map<String, Object>> GettingInformation(int id) {
        return uploading.GettingInformation(id);
    }

    @Override
    public int tiao(String snumbering, String snumbered, String scustomerName, String sproduct, String sstate, String sRabobank) {
        return uploading.tiao(snumbering, snumbered, scustomerName, sproduct, sstate, sRabobank);
    }

    @Override
    public int miao(String customer, String bank) {
        return uploading.miao(customer,bank);
    }
}
